Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
FrailMap is an extension of WeakMap that supports primitive values using WeakRef.
FrailMap is an extension of WeakMap that supports primitive values using WeakRef. It may also set individual pairs to be strongly referenced when specified, or when WeakRef is not available.
import { FrailMap } from "frail-map";
const myMap = new FrailMap<string, number>();
myMap.set("foo", "foo");
myMap.set("bar", "bar", { strong: true });
console.log(myMap.get("foo")); // -> "foo"
console.log(myMap.get("bar")); // -> "bar"
// ... After GC ...
console.log(myMap.get("foo")); // -> undefined
console.log(myMap.get("bar")); // -> "bar"
If you find a bug or would like to suggest a new feature, please open an issue or submit a pull request on GitHub.
FrailMap is licensed under the MIT License. See the LICENSE file for more information.
If you find this project useful, please consider supporting it by donating to the author.
FAQs
FrailMap is an extension of WeakMap that supports primitive values using WeakRef.
The npm package frail-map receives a total of 1,440 weekly downloads. As such, frail-map popularity was classified as popular.
We found that frail-map demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.